<?php

class Base
{
    public function OPTIONS($matches)
    {
        // set the status
        header('HTTP/1.1 204 No Content');
        // allow scripts from ANY
        header('Access-Control-Allow-Origin: *');
        header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
        header('Access-Control-Allow-Headers: Content-type, Accept');
        header('Access-Control-Max-Age: 1728000');
        // set the content length
        header('Content-length: 0');
    }
}

?>